/**
 * Copyright(c) 2013 Jade Techonologies Co., Ltd.
 *
 * History:
 *   13-5-7 上午11:13 Created by sky
 */
package com.jade.bss.base.provision.customer;

import javax.inject.Inject;
import javax.inject.Named;

import com.jade.bss.base.BssException;
import com.jade.bss.base.customer.CustomerManager;
import com.jade.bss.base.customer.UserMappingManager;
import com.jade.bss.base.provision.ProvsionValve;

/**
 * 抽象的客户处理阀门。
 *
 * @author sky
 * @version 1.0 13-5-7 上午11:13
 */
public abstract class AbstractCustomerValve
        extends ProvsionValve<CustomerContext, BssException>
{
    protected CustomerManager customerManager;
    protected UserMappingManager mappingManager;

    @Inject
    public void setCustomerManager(@Named ("bss_customerManager") CustomerManager customerManager)
    {
        this.customerManager = customerManager;
    }

    @Inject
    public void setMappingManager(@Named ("bss_userMappingManager") UserMappingManager mappingManager)
    {
        this.mappingManager = mappingManager;
    }

}